package com.example.service.configuration.impl;

import com.example.bean.configuration.PingGuJiBieGuanLi;
import com.example.bean.configuration.PingGuMoBan;
import com.example.bean.configuration.vo.PingGuJiBieGuanLiVo;
import com.example.mapper.configuration.PingGuJiBieGuanLiMapper;
import com.example.service.configuration.PingGuJiBieGuanLiService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PingGuJiBieGuanLiServiceImpl implements PingGuJiBieGuanLiService {

    @Autowired
    PingGuJiBieGuanLiMapper mapper;

    @Override
    public PageInfo<PingGuJiBieGuanLi> getpage(PingGuJiBieGuanLiVo vo) {
        PageHelper.startPage(vo.getDqNum(),vo.getXsNum());
        PageInfo<PingGuJiBieGuanLi> page = new PageInfo<PingGuJiBieGuanLi>(mapper.getpage(vo));
        return page;
    }

    @Override
    public Integer addpgjbgl(PingGuJiBieGuanLi pingGuJiBieGuanLi) {
        return mapper.addpgjbgl(pingGuJiBieGuanLi);
    }

    @Override
    public PingGuJiBieGuanLi getId(String aid) {
        return mapper.getId(aid);
    }

    @Override
    public Integer xiugai(PingGuJiBieGuanLi pingGuJiBieGuanLi) {
        return mapper.xiugai(pingGuJiBieGuanLi);
    }

    @Override
    public Integer dels(List<String> ids) {
        return mapper.dels(ids);
    }
}
